//package zhongbo.java.air.controller;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import zhongbo.java.air.common.vo.PageVo;
//import zhongbo.java.air.common.vo.ResultVo;
//import zhongbo.java.air.dictionary.model.AirCraft;
//import zhongbo.java.air.dictionary.service.IAirCraftService;
//
//@Controller
//@RestController
//@RequestMapping("airCraft")
//@Api(tags = "飞机信息接口")
//public class AirCraftController1 {
//    @Autowired
//    private IAirCraftService iAirCraftService;
//
//    @PostMapping("addAir")
//    @ApiOperation("获取添加飞机列表")
//    public ResultVo<AirCraft> add(@RequestBody AirCraft airCraft) {
//        AirCraft add = iAirCraftService.add(airCraft);
//        if (add != null) {
//            return ResultVo.ok(add);
//        }
//        return ResultVo.failed();
//    }
//
//    @PostMapping("deleteAir")
//    @ApiOperation("获取删除飞机列表")
//    public ResultVo<String> delete(@RequestBody String id) {
//        String delete = iAirCraftService.delete(id);
//        if (delete != null) {
//            return ResultVo.ok(delete);
//        }
//        return ResultVo.failed();
//    }
//    @PostMapping("editAir")
//    @ApiOperation("获取修改飞机列表")
//    public ResultVo<AirCraft> edit(@RequestBody  AirCraft edit) {
//        AirCraft editN = iAirCraftService.edit(edit);
//        if (editN != null) {
//            return ResultVo.ok(edit);
//        }
//        return ResultVo.failed();
//    }
//    @PostMapping("selectAir")
//    @ApiOperation("获取查询飞机列表")
//    public ResultVo<AirCraft> select(@RequestBody String id) {
//        AirCraft select = iAirCraftService.findAirPort(id);
//        if (select != null) {
//            return ResultVo.ok(select);
//        }
//        return ResultVo.failed();
//    }
//    @PostMapping("selectPageAir")
//    @ApiOperation("获取分页查询飞机列表")
//    public ResultVo< PageVo<AirCraft>> select(@RequestBody Integer page, Integer pageSize
//            , String keyword, String fields
//            , String oderByField, Boolean orderByAsc) {
//        PageVo<AirCraft> select = iAirCraftService.pageVo(page, pageSize, keyword, fields, oderByField, orderByAsc);
//        if (select != null) {
//            return ResultVo.ok(select);
//        }
//        return ResultVo.failed();
//    }
//}
